package testPaper;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-21
 */
public class Square {

  int i, j, k, sum;

  public static void main(String[] args) {
    //

    Square square = new Square();
    square.squareSum(234, true);
  }

  void squareSum(int n, boolean result) {
    i = n % 10;
    sum += i * i;
    i = n / 10 % 10;
    sum += i * i;
    i = n / 100;
    sum += i * i;
    if (sum == n) {
      System.out.println(result);
    } else {
      result = false;
      System.out.println();
    }
  }
}
